package com.bacon.gmall.product.controller;

import com.bacon.gmall.product.service.TestLockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author： bacon、
 * @version： 1.0
 * @create： 2020-12-25 16:43
 * @description:
 */

@RestController
@RequestMapping("/admin/product")
public class TestLockController {


    @Autowired
    private TestLockService testLockService;

    @GetMapping("/test/testLock")
    public void testLock() {
        testLockService.add();

    }
}
